package cn.wolfcode.p2p.bussness.service;

import cn.wolfcode.p2p.base.query.QueryObject;
import cn.wolfcode.p2p.bussness.domain.SystemAccount;
import cn.wolfcode.p2p.bussness.domain.SystemAccountFlow;
import com.github.pagehelper.PageInfo;

import java.math.BigDecimal;

public interface ISystemAccountFlowService {
    int save(SystemAccountFlow systemAccountFlow);

    PageInfo queryPage(QueryObject qo);

    /**
     * 新增系统账户的流水
     * @param systemAccount 系统账户
     * @param amount   改变的金额
     */
    void createGainAccountManagementChargeFlow(SystemAccount systemAccount, BigDecimal amount);

    /**
     * 新增系统账户的成功还款流水
     * @param systemAccount
     * @param interest
     */
    void createGainAccountManagementChargeSuccessFlow(SystemAccount systemAccount, BigDecimal interest);

}
